#include<stdio.h>
int main()
{
	int x,y,n;int count=0; 
scanf("%d",&n); 
		
		for(y=1; y<=n; y++)
		{
			for(x=1; x<y; x++)
			{
				printf("%d*%d=%-2d",x,y,x*y);
				printf(" ");
			}
			printf("%d*%d=%-2d",x,y,x*y);
			printf("\n");
		}
		
	
	return 0;
}

